<?php
    include("../../service/productService.php");
    
	//mode 1: special product
	//mode 2: new product banner
	$mode = $_POST["mode"];
	$products = null;
	
	if($mode = 1)
	    $products = findProductNotLinkToSpecialProductBy($_POST["catId"], $_POST["parentProId"]);
	else 
		$products = findProductNotLinkToNewProductBannerBy($_POST["catId"], $_POST["parentProId"]);
		
    $count = 0;
    while($row = mysql_fetch_array($products)){
?>
    <li id="product_chzn_o_<?php echo $count;?>" class="active-result result-selected" style="">
        <?php echo $row["PRO_NAME"];?>
        <input type="hidden" value="<?php echo $row["PRO_ID"];?>" id="pro_<?php echo $count++;?>"/>
    </li>
    
<?php
    }
?>